home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / bin / imlib-config < prev    next >
Text File  |  2005-10-20  |  1KB  |  71 lines

  1. #!/bin/sh
  2. #
  3. # Shamelessly ripped form gtk's gtk-config.in
  4. #
  5.  
  6. gx_libs=" -ljpeg -ltiff -lgif -lpng -lz -lm"
  7. gdk_gx_libs=" "
  8. gdk_libs=""
  9.  
  10. prefix=/usr
  11. exec_prefix=${prefix}
  12. exec_prefix_set=no
  13.  
  14. usage="\
  15. Usage: imlib-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--libs-gdk] [--cflags] [--cflags-gdk]"
  16.  
  17. if test $# -eq 0; then
  18.       echo "${usage}" 1>&2
  19.       exit 1
  20. fi
  21.  
  22. while test $# -gt 0; do
  23.   case "$1" in
  24.   -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  25.   *) optarg= ;;
  26.   esac
  27.  
  28.   case $1 in
  29.     --prefix=*)
  30.       prefix=$optarg
  31.       if test $exec_prefix_set = no ; then
  32.         exec_prefix=$optarg
  33.       fi
  34.       ;;
  35.     --prefix)
  36.       echo $prefix
  37.       ;;
  38.     --exec-prefix=*)
  39.       exec_prefix=$optarg
  40.       exec_prefix_set=yes
  41.       ;;
  42.     --exec-prefix)
  43.       echo $exec_prefix
  44.       ;;
  45.     --version)
  46.       echo 1.9.14
  47.       ;;
  48.     --cflags)
  49.       echo $includes  
  50.       ;;
  51.     --cflags-gdk)
  52.       echo `/usr/bin/gtk-config --cflags` $includes 
  53.       ;;
  54.     --libs)
  55.       libdirs=-L${exec_prefix}/lib
  56.       echo $libdirs -lImlib  $gx_libs -lXext   -lSM -lICE -lXext -lX11 
  57.       ;;
  58.     --libs-gdk)
  59.       libdirs=-L${exec_prefix}/lib
  60.       echo $libdirs -lgdk_imlib$gdk_gx_libs `/usr/bin/gtk-config --libs` $gdk_libs
  61.       ;;
  62.     *)
  63.       echo "${usage}" 1>&2
  64.       exit 1
  65.       ;;
  66.   esac
  67.   shift
  68. done
  69.  
  70. exit 0
  71.